/*
 * @Description:
 * @Autor: GuluGuluu
 * @Date: 2023-06-27 23:33:03
 * @LastEditors: GuluGuluu
 * @LastEditTime: 2023-07-02 15:38:19
 */
import React from "react";
import { ToastComponent } from "amis-ui";
import { useAuth } from "./context/auth-context";
import AuthenticatedApp from "./authenticated-app";
import Login from "./pages/Login";

function App() {
  const { user } = useAuth();
  return (
    <>
      <ToastComponent key="toast" />
      {user ? <AuthenticatedApp /> : <Login />}
      {/* <AuthenticatedApp /> */}
    </>
  );
}

export default App;
